# find patch
FIND_PROGRAM (PATCH_UTILITY patch)
MESSAGE ("patch utility is " ${PATCH_UTILITY})

# set python passing args
SET (PYTHON_SCRIPT_PASSING_ARGS ${CMAKE_SYSTEM_NAME} ${CMAKE_CURRENT_BINARY_DIR}
	${CMAKE_BUILD_TYPE} ${PATCH_UTILITY})

# sqlite3
ADD_CUSTOM_TARGET (
	sqlite3 ALL
	COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/script/make-sqlite3.py ${PYTHON_SCRIPT_PASSING_ARGS}
	WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

# wxWidgets
ADD_CUSTOM_TARGET (
	wxWidgets ALL
	COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/script/make-wxWidgets.py ${PYTHON_SCRIPT_PASSING_ARGS}
	WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
